<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:58:"D:\class\public/../application/index\view\login\login.html";i:1554640871;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <link rel="apple-touch-icon" sizes="76x76" href="/favicon.ico">
    <link rel="icon" type="image/png" href="/favicon.ico">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>忘记密码</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
    <!--     Fonts and icons     -->
    <!--<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />-->
    <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />-->
    <!-- CSS Files -->
    <link href="/login/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/login/css/now-ui-kit.css?v=1.1.0" rel="stylesheet" />
    <!-- CSS Just for demo purpose, don't include it in your project -->
    <link href="/login/css/demo.css" rel="stylesheet" />
    <!-- Canonical SEO -->
    <link rel="canonical" href="" />
    <!--  Social tags      -->
    <meta name="keywords" content="">
    <meta name="description" content="">
    
    
    
</head>

<body class="login-page sidebar-collapse">

    <!-- End Navbar -->
    <div class="page-header" >
        <div class="page-header-image" style="background-image:url(/index/img/02.jpg)"></div>
        <div class="container">
            <div class="col-md-4 content-center">
                <div class="card card-login card-plain">
                        <div class="header header-primary text-center">
                            <div class="logo-container" style="width: 120px;">
                               <h4>瑜伽生活</h4>
                            </div>
                        </div>
                        <div class="content">
                            <div class="input-group form-group-no-border input-lg">
                                <span class="input-group-addon">
                                    <i class="now-ui-icons users_circle-08"></i>
                                </span>
                                <input type="text" class="form-control"  placeholder="请输入手机号" id="mobile">
                            </div>
                            <div class="input-group form-group-no-border input-lg">
                                <span class="input-group-addon">
                                    <i class="now-ui-icons text_caps-small"></i>
                                </span>
                                <input type="password" placeholder="请输入密码" class="form-control" id="password"/>
                            </div>
                        </div>
                        <div class="footer text-center" id="login">
                            <a class="btn btn-primary btn-round btn-lg btn-block" style="background-color: #687dca;">登录</a>
                        </div>
                        <div class="pull-left">
                            <span style="text-align: left"><a href="<?php echo url('login/register'); ?>" class="link">注册账号</a></span>
                            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <span style="text-align: left"><a href="<?php echo url('login/forget'); ?>" class="link">忘记密码</a></span>
                        </div>
                </div>
            </div>
        </div>
    </div>
</body>
<!--   Core JS Files   -->
<script src="/login/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="/login/js/core/popper.min.js" type="text/javascript"></script>
<script src="/login/js/core/bootstrap.min.js" type="text/javascript"></script>
<script src="/login/js/plugins/bootstrap-switch.js"></script>
<script src="/login/js/plugins/nouislider.min.js" type="text/javascript"></script>
<script src="/login/js/plugins/bootstrap-datepicker.js" type="text/javascript"></script>
<script src="/login/js/plugins/jquery.sharrre.js" type="text/javascript"></script>
<script src="/login/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>
</html>
<script src="/index/common/layui/layui.all.js"></script>
<script>
    $('#login').click(function () {
        var mobile = $('#mobile').val();
        var password = $('#password').val();
        $.ajax({
            type: "POST",
            dataType: 'json',
            url: '/index/login/login_in',
            data:{
                mobile:mobile,
                password:password,
            },
            success: function (data) {
                if (data.code == 200) {
                    layer.msg(data.msg);
                    window.location.href='/index/index/index';
                }else{
                    layer.msg(data.msg);
                }
            }
        });
    });

</script>